package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 耗材管理对象 erp_consumables
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
public class ErpConsumables extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 耗材名称 */
    @Excel(name = "耗材名称")
    private String consName;

    /** 耗材价格 */
    @Excel(name = "耗材价格")
    private BigDecimal consPrice;

    /** 类型 */
    @Excel(name = "类型")
    private Long consType;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long consPurchaseQuantity;

    /** 采购状态 */
    @Excel(name = "采购状态")
    private Long consStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String consNotes;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setConsName(String consName) 
    {
        this.consName = consName;
    }

    public String getConsName() 
    {
        return consName;
    }
    public void setConsPrice(BigDecimal consPrice) 
    {
        this.consPrice = consPrice;
    }

    public BigDecimal getConsPrice() 
    {
        return consPrice;
    }
    public void setConsType(Long consType) 
    {
        this.consType = consType;
    }

    public Long getConsType() 
    {
        return consType;
    }
    public void setConsPurchaseQuantity(Long consPurchaseQuantity) 
    {
        this.consPurchaseQuantity = consPurchaseQuantity;
    }

    public Long getConsPurchaseQuantity() 
    {
        return consPurchaseQuantity;
    }
    public void setConsStatus(Long consStatus) 
    {
        this.consStatus = consStatus;
    }

    public Long getConsStatus() 
    {
        return consStatus;
    }
    public void setConsNotes(String consNotes) 
    {
        this.consNotes = consNotes;
    }

    public String getConsNotes() 
    {
        return consNotes;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("consName", getConsName())
            .append("consPrice", getConsPrice())
            .append("consType", getConsType())
            .append("consPurchaseQuantity", getConsPurchaseQuantity())
            .append("consStatus", getConsStatus())
            .append("consNotes", getConsNotes())
            .append("creatTime", getCreatTime())
            .toString();
    }
}
